import java.sql.*;

public class DBConnection {

	private Connection  conn;
	private final static String DB_URL  = "jdbc:mysql://localhost/dream_project";
	private final static String DB_USER = "root";
	private final static String DB_PWD  = "root";
	
	public Connection getConnection()
	{
		try
		{
		    conn  = DriverManager.getConnection(DB_URL, DB_USER, DB_PWD);
		}
		catch(SQLException e)
		{
			e.printStackTrace();
			return null;
		}
		
		return conn;
	}
    
	
}
